package com.ruoyi.mall.common.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 提现记录对象 dts_account_trace
 *
 * @author ruoyi
 * @date 2025-03-10
 */
public class DtsAccountTrace extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    @Excel(name = "记录ID")
    private Long id;

    /** 申请流水 */
    @Excel(name = "申请流水")
    private String traceSn;

    /** 类型 */
    @Excel(name = "类型")
    private Integer type;

    /** 提现账号 */
    @Excel(name = "提现账号")
    private Long userId;

    /** 品牌商户id */
    @Excel(name = "品牌商户id")
    private Long brandId;

    /** 提现金额 */
    @Excel(name = "提现金额")
    private BigDecimal amount;

    /** 总申请金额 */
    @Excel(name = "总申请金额")
    private BigDecimal totalAmount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 短信提取码 */
    @Excel(name = "短信提取码")
    private String smsCode;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String status;

    /** 审批备注 */
    @Excel(name = "审批备注")
    private String traceMsg;

    private String username;
    private String name;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private List<DtsBrand> brandList;

    private List<DtsUser> userList;

    public List<DtsBrand> getBrandList() {
        return brandList;
    }

    public void setBrandList(List<DtsBrand> brandList) {
        this.brandList = brandList;
    }

    public List<DtsUser> getUserList() {
        return userList;
    }

    public void setUserList(List<DtsUser> userList) {
        this.userList = userList;
    }


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTraceSn(String traceSn)
    {
        this.traceSn = traceSn;
    }

    public String getTraceSn()
    {
        return traceSn;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBrandId(Long brandId)
    {
        this.brandId = brandId;
    }

    public Long getBrandId()
    {
        return brandId;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setAddTime(Date addTime)
    {
        this.addTime = addTime;
    }

    public Date getAddTime()
    {
        return addTime;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setSmsCode(String smsCode)
    {
        this.smsCode = smsCode;
    }

    public String getSmsCode()
    {
        return smsCode;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setTraceMsg(String traceMsg)
    {
        this.traceMsg = traceMsg;
    }

    public String getTraceMsg()
    {
        return traceMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("traceSn", getTraceSn())
            .append("type", getType())
            .append("userId", getUserId())
            .append("brandId", getBrandId())
            .append("amount", getAmount())
            .append("totalAmount", getTotalAmount())
            .append("addTime", getAddTime())
            .append("mobile", getMobile())
            .append("smsCode", getSmsCode())
            .append("status", getStatus())
            .append("traceMsg", getTraceMsg())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
